package com.github.zihang.controller;

import com.github.zihang.remote.UserFeignRemote;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @ClassName UserManagementController
 * @DESCRIPTION TODO
 * @Author RuanlinJing
 * @Date 2018/6/19 14:22
 * @Version 1.0
 **/
@RestController
public class UserClientFeignController {
    @Autowired
    private UserFeignRemote userFeignRemote;

    @GetMapping("/listUsersByFeign")
    public String listUsersByFeign(){
        return userFeignRemote.ListUsers();
    }
}
